<%@ taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@taglib prefix="sjg" uri="/struts-jquery-grid-tags"%>
<%@ taglib prefix="sjr" uri="/struts-jquery-richtext-tags"%>


<s:form id="updateForm" theme="bootstrap" cssClass="form-horizontal" label="Form News">
	<div class="row-fluid">
		<div class="span12">
			<s:hidden name="id" value="%{news.id}"></s:hidden>
			
			<s:textfield 
				label="Title" 
				name="title" 
				id="title"
				cssClass="input-xlarge" 
				value="%{news.title}" />
				
			<s:textfield 
				label="Created By" 
				name="createdBy" 
				id="createdBy"
				cssClass="input-xlarge" 
				value="%{news.createdBy}" />	

			 <sjr:ckeditor
				label="Content" 
                id="richtextEditor" 
                name="content" 
                rows="10" 
                cols="80" 
                width="800"
                value="%{news.content}" />
		</div>
	</div>
</s:form>

<s:url id="urlUpdate" action="modul/news/crud/update"/>

<sj:a id="update" href="%{urlUpdate}" cssClass="btn"
	formIds="updateForm" onBeforeTopics="clearTarget"
	targets="resultTarget" onSuccessTopics="reloadPaging"
	onClickTopics="buttonClick">Update</sj:a>